package com.lza.response;


public enum  ResultCode implements CustomizeResultCode {
    SUCCESS(200,"成功"),
    ERROR(400,"失败"),
    PASS_NOT_CORRECT(305,"密码错误"),
    PAGE_NOT_FOUND(405,"没有找到相应的路径"),
    ARITHMETIC_EXCEPTION(305,"算法异常"),
    USER_NOT_FOUND(307,"用户不存在"),
    USER_DOUBLE(308,"用户已经存在"),
    USER_NOT_LOGIN(309,"用户没有登陆"),
    NOT_MESSAGE(310,"没有输入任何东西"),
    NOT_DELETE(311,"没权利删除")
    ;
    private Integer code;
    private String message;
    ResultCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
